package com.mbc.rmt.dao;

import java.sql.SQLException;
import java.util.ArrayList;

import com.mbc.rmt.data.CashReturnDetailDataList;
import com.mbc.rmt.entities.CashReturnDetails;

public interface CashReturnDetailDAO {
	
	public static final byte HEARDER = 1;
	public static final byte DETAIL = 2;

	public void create(CashReturnDetails entity) throws SQLException;
	public void update(CashReturnDetails entity) throws SQLException;
	public void delete(long key, int mode) throws SQLException;
	public CashReturnDetails findById(long slipId) throws SQLException;
	public CashReturnDetailDataList findCashReturnDetailByCri(CashReturnDetails cri) throws SQLException;
	public void updateCashPaymentReturnStatus(long slipdetail, long definedetail, double amount, byte status) throws SQLException;
	ArrayList<CashReturnDetails> findByHeaderId(long slipid) throws SQLException;
}
